package action.expert;

import java.util.List;

import presentation.PageVO;
import presentation.extendmodel.TdfkfaExpertListEx;
import presentation.queryvo.ExpertListQueryVO;
import service.ExpertService;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class ListJudgingExpertAction extends ActionSupport {

    private static final long serialVersionUID = 1L;

    private ExpertService expertService;

    private List<TdfkfaExpertListEx> expertList;

    private PageVO pageVO;

    private ExpertListQueryVO queryVO;

    public String execute() throws Exception {

        pageVO.setRecordNum(expertService.countJudgingExpert(queryVO));

        expertList = expertService.getJudgingExpertList(queryVO, pageVO.getIntPageIndex(), pageVO.getIntPageSize());

        return Action.SUCCESS;
    }

    public void setExpertService(ExpertService expertService) {
        this.expertService = expertService;
    }

    public List<TdfkfaExpertListEx> getExpertList() {
        return expertList;
    }

    public PageVO getPageVO() {
        return pageVO;
    }

    public void setPageVO(PageVO pageVO) {
        this.pageVO = pageVO;
    }

    public ExpertListQueryVO getQueryVO() {
        return queryVO;
    }

    public void setQueryVO(ExpertListQueryVO queryVO) {
        this.queryVO = queryVO;
    }

}
